package com.weseal.vo;

import com.weseal.domain.UserPartDate;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * @author
 */

public class UserPartDateVo extends IdentityVo implements Serializable {

	private static final long serialVersionUID = 4500240868416970768L;
	private Long userId;
	private Long partDateId;
	private Integer score;
	private String note;

	public static UserPartDateVo convert2Vo(UserPartDate domain) {
		UserPartDateVo vo = new UserPartDateVo();
		BeanUtils.copyProperties(domain, vo);
		return vo;
	}

	public static List<UserPartDateVo> convert2Vo(List<UserPartDate> domains) {
		List<UserPartDateVo> partInfoVos = new ArrayList<UserPartDateVo>();
		for (UserPartDate domain : domains) {
			partInfoVos.add(convert2Vo(domain));
		}
		return partInfoVos;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getPartDateId() {
		return partDateId;
	}

	public void setPartDateId(Long partDateId) {
		this.partDateId = partDateId;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}


}